PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

IconRefToIconFamily

Provides icon family data for a given IconRef .

pascal OSErr IconRefToIconFamily(
                     IconRef iconRef,
                     IconSelectorValue whichIcons,
                     IconFamilyHandle*iconFamily);

iconRef
A pointer to a value of type IconRef to use as a source for icon data.

whichIcons
A value of type IconSelectorValue specifying the depths and sizes of icons in the iconFamily data structure. For a description of the possible values, see Icon Selector Constants .

iconFamily
A handle to an IconFamily data structure. On return, this data structure contains icon data as specified in the IconRef and whichIcons parameters. Icon Services returns NULL if no appropriate icon data is found. For more information on the IconFamily data structure, see Figure 2-1 .

function result
A result code. See Icon Services Result Codes for a description of possible return values.

© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)